s = '\n    ... a baby is a baby.    \n'

s = s.strip()
print(s)

s = s.strip('.')
print(s)

s = s.strip('aby ')
print(s)
